package cn.kgc.layui.util;

import java.io.IOException;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        ValidateCode vCode = new ValidateCode(120,40,5,100);
        try {
            String path="/Users/yeziwang/Documents/ALLINONE-workspace/maven-web/JavaWeb-02-Maven/"+new Date().getTime()+".png";
            System.out.println(vCode.getCode()+" >"+path);
            vCode.write(path);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
